package com.qf;

import com.qf.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName controller
 * @Author xiao宋
 * @Date 11:14  2022/9/29
 * @Version 1.0
 * @Description TODO
 */
@Controller
@RequestMapping
public class controller {
    @RequestMapping("sayHello")
    public String sayHello(){
        System.out.println("你好好好好好不好");
        System.out.println("我不好");
        return "/index.jsp";
    }

    @RequestMapping("test1")
    public String test1(User user){
        System.out.println(user);
        return "/index.jsp";
    }

}
